<html>
<head>
<title>My Page</title>
</head>
<body>
  <form name="myform" action="/location/" method="POST">
<div align="left"><br>
{% csrf_token %}

<h2>{{template.name}}</h2>
Your Event Name: <input title="EventName" name="EventName" id="en" name="en" type="text" size="18" /><br />

Start Date:<input id ="textID" name= "StartDate" input value="2012-01-1" type="date" size="18" /><br />
End Date:<input id = "textID" name= "EndDate" input value="2012-01-1" type="date" size="18" /><br />

<br>
<br>

Start Time:<input id = "textID" name="StartTime" input value="00:00" type="time" size="18" /><br />
End Time:<input id = "textID" name= "EndTime" input value="00:00" type="time" size="18" /><br />

<br>
<br>


{% if template.name|stringformat:"s" == "Wedding"  %}
Bride's Name: <input title="Bride's Name" name="BrideName" id="bn" name="bn" type="text" size="18" /><br />
Groom's Name: <input title="Groom's Name" name="GroomName" id="gn" name="gn" type="text" size="18" /><br />

<h2>Check the components you would like to add to your event:</h2>
<input type="checkbox" name="component" value="Location" checked> Location<br>
<input type="checkbox" name="component" value="Payment"> Payment<br>
<input type="checkbox" name="component" value="Agenda">  Agenda<br>
<input type="checkbox" name="component" value="Media" checked> Media<br>
<input type="checkbox" name="component" value="Social Marketing"> Social Marketing<br>
<input type="checkbox" name="component" value="Live Stream" checked> Live Stream<br>
<br>
{% else %}


{% if template.name|stringformat:"s" == "Engagement"  %}
Bride's Name: <input title="Bride's Name" name="BrideName" id="bn" name="bn" type="text" size="18" /><br />
Groom's Name: <input title="Groom's Name" name="GroomName" id="gn" name="gn" type="text" size="18" /><br />

<h2>Check the components you would like to add to your event:</h2>
<input type="checkbox" name="component" value="Location" checked> Location<br>
<input type="checkbox" name="component" value="Payment"> Payment<br>
<input type="checkbox" name="component" value="Agenda">  Agenda<br>
<input type="checkbox" name="component" value="Media" checked> Media<br>
<input type="checkbox" name="component" value="Social Marketing"> Social Marketing<br>
<input type="checkbox" name="component" value="Live Stream" checked> Live Stream<br>
<br>
{% else %}


{% if template.name == "Birthday"  %}
 Birthday's Owner: <input title="Birthday's Owner" name="BirthdayOwner" id="bo" name="bo" type="text" size="18" /><br />
 <br>
 <h2>Check the components you would like to add to your event:</h2>
  <br>
 <input type="checkbox" name="component" value="Location" checked> Location<br>
<input type="checkbox" name="component" value="Payment"> Payment<br>
<input type="checkbox" name="component" value="Agenda">  Agenda<br>
<input type="checkbox" name="component" value="Media" checked> Media<br>
<input type="checkbox" name="component" value="Social Marketing" checked> Social Marketing<br>
<input type="checkbox" name="component" value="Live Stream"> Live Stream<br>
<br>
{% else %}

{% if template.name|stringformat:"s" == "Concert"  %}
Singer's Name: <input title="Singer's Name" name="SingerName" id="sn" name="sn" type="text" size="18" /><br />
 <br>
 <h2>Check the components you would like to add to your event:</h2>
  <br>
<input type="checkbox" name="component" value="Location" checked> Location<br>
<input type="checkbox" name="component" value="Payment" checked> Payment<br>
<input type="checkbox" name="component" value="Agenda" checked> Agenda<br>
<input type="checkbox" name="component" value="Media" checked> Media<br>
<input type="checkbox" name="component" value="Social Marketing" checked> Social Marketing<br>
<input type="checkbox" name="component" value="Live Stream" checked> Live Stream<br>
<br>

{% else %}


{% if template.name|stringformat:"s" == "Charity"  %}
 Charity Type: <input title="Charity Type" name="CharityType" id="ct" name="ct" type="text" size="18" /><br />
  <br>
 <h2>Check the components you would like to add to your event:</h2>
  <br>
 <input type="checkbox" name="component" value="Location" checked> Location<br>
<input type="checkbox" name="component" value="Payment"> Payment<br>
<input type="checkbox" name="component" value="Agenda"> Agenda<br>
<input type="checkbox" name="component" value="Media"> Media<br>
<input type="checkbox" name="component" value="Social Marketing" checked> Social Marketing<br>
<input type="checkbox" name="component" value="Live Stream"> Live Stream<br>
<br>

{% else %}


{% if template.name|stringformat:"s" == "Conference"  %}
  <br>
 <h2>Check the components you would like to add to your event:</h2>
  <br>
 <input type="checkbox" name="component" value="Location" checked> Location<br>
<input type="checkbox" name="component" value="Payment"> Payment<br>
<input type="checkbox" name="component" value="Agenda" checked> Agenda<br>
<input type="checkbox" name="component" value="Media" checked> Media<br>
<input type="checkbox" name="component" value="Social Marketing" checked> Social Marketing<br>
<input type="checkbox" name="component" value="Live Stream" checked> Live Stream<br>
<br>

{% else %}


{% if template.name|stringformat:"s" == "Trip"  %}
  <br>
 <h2>Check the components you would like to add to your event:</h2>
  <br>
 <input type="checkbox" name="component" value="Location" checked> Location<br>
<input type="checkbox" name="component" value="Payment" checked> Payment<br>
<input type="checkbox" name="component" value="Agenda"> Agenda<br>
<input type="checkbox" name="component" value="Media"> Media<br>
<input type="checkbox" name="component" value="Social Marketing" checked> Social Marketing<br>
<input type="checkbox" name="component" value="Live Stream"> Live Stream<br>
<br>


{% else %}


{% if template.name|stringformat:"s" == "Outing"  %}
  <br>
 <h2>Check the components you would like to add to your event:</h2>
  <br>
 <input type="checkbox" name="component" value="Location" checked> Location<br>
<input type="checkbox" name="component" value="Payment"> Payment<br>
<input type="checkbox" name="component" value="Agenda"> Agenda<br>
<input type="checkbox" name="component" value="Media"> Media<br>
<input type="checkbox" name="component" value="Social Marketing" checked> Social Marketing<br>
<input type="checkbox" name="component" value="Live Stream"> Live Stream<br>
<br>

{% else %}
 <br>
 <h2>Check the components you would like to add to your event:</h2>
  <br>
<input type="checkbox" name="component" value="Location" checked> Location<br>
<input type="checkbox" name="component" value="Payment" checked> Payment<br>
<input type="checkbox" name="component" value="Agenda" checked> Agenda<br>
<input type="checkbox" name="component" value="Media"> Media<br>
<input type="checkbox" name="component" value="Social Marketing"> Social Marketing<br>
<input type="checkbox" name="component" value="Live Stream"> Live Stream<br>
<br>

{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}


</div>
<input type="submit" name="name" value="Submit" />
</form>

</form>
<!--   
<form action="../" onsubmit="return http://facebook.com">
	<p><input type="CHECKBOX" name="location" value="location"> location</p>
	<p><input type="CHECKBOX" name="payment" value="payment"> payment</p>
	<p><input type="CHECKBOX" name="agenda" value="agenda"> agenda</p>
	<p><input type="SUBMIT" value="Submit!"></p>
	
</form>

<script type="text/javascript" language="JavaScript">

function checkCheckBoxes(theForm) {
	if (
	theForm.location.checked == false 
	{
		alert ('alooo');
		System.out.print("all")
		return false;
	} else { 	
		return true;
	}
}

</script>
-->
</body>
</html>